<template>
  <div class="app-container">
    <el-card>
      <div slot="header">
        <el-button @click="refresh"
          ><i class="el-icon-refresh"></i>&nbsp;刷新</el-button
        >
      </div>
    </el-card>
    <el-table
      ref="multipleTable"
      v-loading="listLoading"
      :data="list"
      element-loading-text="拼命加载中"
      border
      fit
      highlight-current-row
      @selection-change="handleSelectionChange"
    >
      <el-table-column type="selection" align="center" />
      <el-table-column align="center" label="#" width="125">
        <template slot-scope="scope">
          {{ scope.$index }}
        </template>
      </el-table-column>
      <el-table-column align="center" label="包名" width="175">
        <template slot-scope="scope">
          {{ scope.row.package_name }}
        </template>
      </el-table-column>
      <el-table-column align="center" label="描述" width="175">
        <template slot-scope="scope">
          {{ scope.row.content }}
        </template>
      </el-table-column>
      <el-table-column align="center" label="开发者" width="75">
        <template slot-scope="scope">
          {{ scope.row.developer }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      list: null,
    };
  },
  methods: {
    refresh() {
      location.reload();
    },
  },
};
</script>
